<? require("adm_header.php"); ?>
<? 
writeCommonAdminTable(LA_LOGVIEW_CAPTION,1);

if (getParam("empty","")!="")
{
	@unlink("config/logs/error.log");
}


$tplPackages = new tplLoad();
$tplPackages->assign("listArray",$lUserArray);

$seperator="::";
$content = @file_get_contents('config/logs/error.log');
$comments = explode($seperator, $content);
$comments = array_reverse($comments);



foreach ($comments as $lItem) {
$lContent.=$lItem;
}

if (!WA())
	$lContent="";

$tplPackages->assign("content",$lContent);
$tplPackages->display("adm_logviewer.tpl");
writeCommonAdminTable("","");
require("adm_footer.php"); 
?>